/************************************************************************
 * @file AbstractExtension.h
 * @author Ian Chen
 * @version 1.0
 *
 * @section LICENSE
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
 * General Public License for more details at
 * http://www.gnu.org/licenses/lgpl.html
 *
 ************************************************************************/
#ifndef ABSTRACTEXTENSION_H
#define ABSTRACTEXTENSION_H

#include <QObject>
#include <QWidget>

#include <pluginui/manager/AbstractMenuManager.h>
#include <pluginui/manager/AbstractPanelManager.h>
#include <pluginui/manager/AbstractStatusBarManager.h>
#include <pluginui/manager/AbstractToolBarManager.h>

namespace antu
{
namespace plugin
{
namespace ui
{
class AbstractExtension : public QObject
{
    Q_OBJECT
public:
    AbstractExtension();

    inline AbstractMenuManager* menuManager()
    {
        return this->m_pMenuManager;
    }

    inline AbstractToolBarManager* toolBarManager()
    {
        return this->m_pToolBarManager;
    }

    inline AbstractPanelManager* contentPanelManager()
    {
        return this->m_pContentPanelManager;
    }

    inline AbstractPanelManager* sidePanelManager()
    {
        return this->m_pSidePanelManager;
    }

    inline AbstractStatusBarManager* statusBarManager()
    {
        return this->m_pStatusBarManager;
    }

    virtual QWidget* rootWidget() = 0;

    static const char* EXTENSION_NAME;

protected:
    AbstractMenuManager* m_pMenuManager;
    AbstractPanelManager* m_pContentPanelManager;
    AbstractPanelManager* m_pSidePanelManager;
    AbstractToolBarManager* m_pToolBarManager;
    AbstractStatusBarManager* m_pStatusBarManager;
};
}
}
}

#endif // ABSTRACTEXTENSION_H
